package com.shell;

import android.app.Application;
import com.moduleinterface.InterfaceInitApp;

public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        try {
            Class<?> mInterfaceClass = Class.forName("com.core.application.MyApp");
            Object instance = mInterfaceClass.newInstance();
            if (instance instanceof InterfaceInitApp) {
                ((InterfaceInitApp) instance).initializa(this);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
